#include "Thread.h"

/*
	Thread
*/

/*	public	*/

void Thread::start() {
	pthread_create(&_id, 0, &_threadCreateHelper, (void*)this);
}

void Thread::join() {
	pthread_join(_id, 0);
}

/*	private	*/

void* Thread::_threadCreateHelper(void* threadPointer) {
	static_cast<Thread*>(threadPointer)->run();
	return 0;
}

